ALL EDITORS V433 — CHARACTER DIRECTORY RENAME DIAGNOSTICS

V432 DOES NOT GUARANTEE DIRECTORY RENAMES.

Two key paths in the shipped V432 code:
1. V430 Lua helper attempts os.rename() while native BG2 Import or Export
   callbacks run. It immediately undoes the rename. A normal folder view after
   clicking a button will NOT show the temporary rename, even when it succeeds.
2. If BG2's UI runtime does not expose io.open/os.rename, a Windows directory
   is locked, or DRAKREN/ready-account configuration is missing, V431/432 keep
   opening the panels without renaming. V432 Export Finish may instead move
   only a freshly exported, explicitly named CHR via the Python router.

V433 ADDS IN-GAME RESULTS.
- It records an integer Last State and Last Error in Baldur.lua under the
  "Drakhysys Character Rename" section via Infinity_SetINIValue.
- States: 30 completed a genuine folder rename+return; 41 panel opened
  without any rename; 42 Export Finish used the individual-file fallback.
- Errors: 101 no Lua file API, 102 DRAKREN missing, 104 login not prepared,
  105 folder/flag missing, 108 native characters directory could not be
  parked, 109 account folder could not be renamed to characters/.
- No extra character files, generated CHR, or automatic backups.
- Existing V432 Import/Export behavior and the account router remain unchanged.

HOW TO TEST IN YOUR ACTUAL GAME
1. Completely close BG2 and run SETUP_IN_GAME_ACCOUNTS.bat from this ZIP.
2. Open BG2, log in, and click Import; open Export and click Finish.
3. Exit BG2 normally so Baldur.lua receives its settings.
4. Run CHECK_V433_CHARACTER_RENAMES.bat, select the real BaldursGate2Online
   profile containing Baldur.lua, and optionally pass --account MyAccount.
5. Copy the displayed Last State / Last Error and folder status for diagnosis.

IMPORTANT
Even when V433 returns State 30, BG2 may read its Import character list or
write an exported CHR after the Lua callback returns. A successful synchronous
rename alone does NOT prove BG2 cached a character inside that callback.
If State 101, Windows rename cannot be performed inside this BG2 UI Lua runtime
using the supplied code. It would require a working native filesystem hook or
another verified mechanism; making a Python router move files later is NOT the
same as the one-click immediate directory rename requested.

RUNS WITHOUT GAME: python -m unittest test_v432_native_finish.py test_v433_rename_diagnostics.py
